package org.eiahe.hr.salary.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.salary.domain.SalaryNotification;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 薪资通知视图对象 hr_salary_notification
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SalaryNotification.class)
public class SalaryNotificationVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 通知ID
     */
    @ExcelProperty(value = "通知ID")
    private Long notificationId;

    /**
     * 租户ID
     */
    @ExcelProperty(value = "租户ID")
    private String tenantId;

    /**
     * 工号
     */
    @ExcelProperty(value = "工号")
    private String employeeNo;

    /**
     * 员工姓名
     */
    @ExcelProperty(value = "员工姓名")
    private String employeeName;

    /**
     * 部门
     */
    private Long department;

    @ExcelProperty(value = "部门名称")
    private String departmentName;

    /**
     * 年月(yyyyMM格式)
     */
    @ExcelProperty(value = "年月")
    private String yearMonth;

    /**
     * 应发工资
     */
    @ExcelProperty(value = "应发工资")
    private BigDecimal grossSalary;

    /**
     * 实发工资
     */
    @ExcelProperty(value = "实发工资")
    private BigDecimal netSalary;

    /**
     * 通知状态(0未发送 1已发送 2已查看)
     */
    @ExcelProperty(value = "通知状态")
    private String notificationStatus;

    /**
     * 发送时间
     */
    @ExcelProperty(value = "发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    /**
     * 查看时间
     */
    @ExcelProperty(value = "查看时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date viewTime;

    /**
     * 通知方式(1系统消息 2邮件 3短信)
     */
    @ExcelProperty(value = "通知方式")
    private String notificationMethod;

    /**
     * 状态(0正常 1封存)
     */
    @ExcelProperty(value = "状态")
    private String status;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
